relation between direction Cosines and direction ratios